package com.syp.test.clustercacheflush.dao;

import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.syp.test.clustercacheflush.domain.SettingsEntity;

@Repository
public interface SettingsRepository extends JpaRepository<SettingsEntity, Long>, JpaSpecificationExecutor<SettingsEntity> {

	/**
	 * 根据配置name获取配置
	 * 
	 * @param uuid
	 * @return
	 */
	public SettingsEntity getByKey(@Param("key") String key);
	
}
